#pragma once



#include <memory>
using namespace std;

struct Packet;

class CPlayer
{
private:
	RECT rPlayer;
	HDC m_hdcBackBuffer;

	void MoveLeft();
	void MoveRight();
	void MoveUp();
	void MoveDown();

	struct Packet* m_pPacketInfo;

public:
	void Init(HDC hdcBackBuffer);
	void Progress();
	void Render();
	void OnEvent(int iEvent);

	struct Packet * GetPlayerPacket()
	{
		return m_pPacketInfo;
	}

	CPlayer(void);
	~CPlayer(void);
};

